<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>新增服务组</title>
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <form method="post" action="" class="layui-form" lay-filter="zmn-service-group-form">
                <input type="hidden" name="servCategId" th:value="${faultGroup.servCategId}">
                <input type="hidden" name="categOneId" th:value="${faultGroup.categOneId}">
                <!--<input type="hidden" name="keepType" th:value="${faultGroup.keepType}">-->
                <input type="hidden" name="groupId" th:value="${faultGroup.groupId}">
                <input type="hidden" name="tariffId" th:value="${faultGroup.tariffId}">
                <div class="layui-card">
                    <div class="layui-form-item">
                        <label class="layui-form-label layui-form-required">分组名称：</label>
                        <div class="layui-input-inline" style="width: 390px">
                            <input type="text" name="groupName" th:value="${faultGroup.groupName}" placeholder="填写分组名称"
                                   lay-verify="required" autocomplete="off" class="layui-input" maxlength="50"/>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label layui-form-required">分组别名：</label>
                        <div class="layui-input-inline" style="width: 390px">
                            <input type="text" name="groupAlias" th:value="${faultGroup.groupAlias}" placeholder="填写分组别名"
                                   lay-verify="required" autocomplete="off" class="layui-input" maxlength="50"/>
                        </div>
                    </div>
                    <!--<div class="layui-form-item">-->
                        <!--<label class="layui-form-label layui-form-required">保内/保外：</label>-->
                        <!--<div class="layui-input-inline" style="width: 390px">-->
                            <!--<input type="radio" name="keepType" value="1" title="保外" th:checked="${faultGroup.keepType == 1|| faultGroup.status == null}">-->
                            <!--<input type="radio" name="keepType" value="2" title="保内" th:checked="${faultGroup.keepType == 2}">-->
                        <!--</div>-->
                    <!--</div>-->
                    <div class="layui-form-item">
                        <label class="layui-form-label layui-form-required">状态：</label>
                        <div class="layui-input-inline" style="width: 390px">
                            <input type="radio" name="status" value="2" title="启用" th:checked="${faultGroup.status == 2 || faultGroup.status == null}">
                            <input type="radio" name="status" value="1" title="停用" th:checked="${faultGroup.status == 1}">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label layui-form-required">排序：</label>
                        <div class="layui-input-inline" style="width: 390px">
                            <input type="number" th:value="${faultGroup.sort}" name="sort" autocomplete="off" class="layui-input"
                                   lay-verify="positive|required"  maxlength="8">
                        </div>
                    </div>
                    <div class="layui-form-item submit">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit="" lay-filter="zmn-service-group-form-submit">确定</button>
                            <button type="cancel" onclick="cancel()" class="layui-btn layui-btn-primary">取消</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>
<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/",
        version:20190926000001
    }).extend({
        index: "lib/index",
        transfer: '{/}/static/lay/layuiexts/transfer',
        serv_service_group_detail: "service/group/zmn.service.group.detail"
    }).use(['index', 'serv_service_group_detail', 'transfer']);

    let json = {
        faultGroup: [[${faultGroup}]]
    }
</script>
